package org.example;

import org.example.factoryPattern.HuaWei;

/**
 * @author LiXingShuai
 * @ClassName ${NAME}
 * @description: TODO
 * @date ${YEAR}年${MONTH}月${DAY}日
 * @version: 1.0
 */
public class Main {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        System.out.println("Hello world!");
        HuaWei huaWei = new HuaWei();
        System.out.println(huaWei.brand());

        HuaWei huaWei1 = HuaWei.class.newInstance();
        System.out.println(huaWei1.brand());
    }
}